import 'package:flutter/material.dart';
import 'package:x3_component_core/components/button_components/base_button.dart';

class BaseDrawerBottom extends StatelessWidget {
  BaseDrawerBottom({Key key, this.close, this.sure, this.closeText = '取消', this.sureText = '确定'}) : super(key: key);
  final String closeText;
  final VoidCallback close;

  final String sureText;
  final VoidCallback sure;

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(child: BaseButton.bottom(text: closeText, fill: false, onPress: this.close)),
        SizedBox(width: 12),
        Expanded(child: BaseButton.bottom(text: sureText, onPress: this.sure)),
      ],
    );
  }
}
